﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiquidTrading.RapidAdditionHelper
{
    public static class Loader
    {
        public enum CredentialDefaults
        {
            FTENTradingTest,
            FTENDropCopyTest,
            FTENDropCopyLive,
            SterlingDropCopyLive
        }


        public static readonly Credentials.FileRepoDBLog CredsFTENTradingTest = new Credentials.FileRepoDBLog("FTENTradingTest", "FIX.4.2", "LQT1", "FTEN", "ftenapp01p", 19000, 120, "localhost", "RAPIDADDITION", "sa", "LIQTRADE", "Repo");
        public static readonly Credentials.FileRepoDBLog CredsFTENDropCopyLive = new Credentials.FileRepoDBLog("FTENDropCopyLive", "FIX.4.2", "LQTDROP", "FTENDROP", "ftenliq01p", 20000, 120, "localhost", "RAPIDADDITION", "sa", "LIQTRADE", "Repo");
        public static readonly Credentials.FileRepoDBLog CredsFTENDropCopyTest = new Credentials.FileRepoDBLog("FTENDropCopyTest", "FIX.4.2", "LQTDROP", "FTENDROP", "ftenapp01p", 20000, 120, "localhost", "RAPIDADDITION", "sa", "LIQTRADE", "Repo");
        //static readonly Credentials.FileRepoDBLog CredsSterlingDropCopyLive = new Credentials.FileRepoDBLog("SterlingDropCopyLive", "FIX.4.2", "LIQUID", "SFS", "10.33.4.20", 19144, 120, "localhost", "RAPIDADDITION", "sa", "LIQTRADE", "Repo");
        public static readonly Credentials.FileRepoFileLog CredsSterlingDropCopyLive = new Credentials.FileRepoFileLog("SterlingDropCopyLive", "FIX.4.2", "LIQUID", "SFS", "10.33.4.20", 19144, 120, ".\\Repo", ".\\Log" , true);

        public static readonly Credentials.FileRepoFileLog CredsRTDFIXServerSterling = new Credentials.FileRepoFileLog("RTDFIXServerSterling", "FIX.4.2", "SFS", "LIQUIDRTDFIX", "localhost", 11000, 60, ".\\Repo", ".\\Log", true);

        public static Clients.SterlingDropCopy CreateSterlingDropCopyLive()
        {
            Storage.LiquidView.SterlingStorage store = new LiquidTrading.RapidAdditionHelper.Storage.LiquidView.SterlingStorage(CredsSterlingDropCopyLive.Id);
            return new LiquidTrading.RapidAdditionHelper.Clients.SterlingDropCopy(CredsSterlingDropCopyLive, store);
        }

    }
}
